//
//  commentcell.m
//  testvideo
//
//  Created by fcbayern on 2021/1/3.
//  Copyright © 2021 fcbayern. All rights reserved.
//

#import "commentcell.h"

@implementation commentcell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        self.backgroundColor = [UIColor whiteColor];
        //self.contentView.backgroundColor =[[UIColor whiteColor] colorWithAlphaComponent:0.8f];
    }
    _username = [[UILabel alloc] init];
    _commentdetail = [[UILabel alloc] init];
    _username.textColor = [UIColor blackColor];
    _commentdetail.textColor = [UIColor blackColor];
    [self.contentView addSubview:_username];
    [self.contentView addSubview:_commentdetail];
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _username.frame = CGRectMake(20, 20, 200, 30);
    _commentdetail.frame = CGRectMake(20, 50, 200, 90);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.backgroundColor = [UIColor blackColor];

    // Configure the view for the selected state
}

@end
